﻿using System;
using System.Collections;
using System.Data;

namespace Efficient.DataAccess
{
    /// <summary>
    /// 
    /// </summary>
    public interface IParameter
    {
        /// <summary>
        /// 参数的方向
        /// </summary>
        ParameterDirection Direction { get; set; }
        /// <summary>
        /// 参数名称
        /// </summary>
        string Name { set; get; }
        /// <summary>
        /// 设置值
        /// </summary>
        object Value { set; get; }
        /// <summary>
        /// 转换成IDbDataParameter
        /// </summary>
        /// <param name="dao"></param>
        /// <returns></returns>
        IDbDataParameter ToDbDataParameter(IDbService dao);
    }
}
